#pragma once
#include <string>
#include <stdarg.h>

void hassert(bool ass, const char* fmt, ...) {
  if (ass) {
    return;
  } else {
    std::string tmp = "\033[31m";
    tmp += fmt;
    tmp += "\n\033[0m";
    va_list args;
    va_start(args, tmp.c_str());
    vprintf(tmp.c_str(), args);
    va_end(args);
  }
}